import request from '@/utils/request'

/**
 * 新增专题图
 * @param {*} data 
 * @returns 
 */
export function addTopicPic(data) {
  return request({
    url: '/gis/subject',
    method: 'post',
    data: data
  })
}

/**
 * 获取专题图列表
 * @param {*} params 
 * @returns 
 */
export function getTopicPics(params) {
  return request({
    url: '/gis/subject/list',
    method: 'get',
    params: params
  })
}

/**
 * 删除专题图
 * @param {*} id 
 * @returns 
 */
export function delTopicPic(id) {
  return request({
    url: '/gis/subject/' + id,
    method: 'delete'
  })
}
